package Iterator.fromKanYun;

public class Test {
    public static void main(String[] args) {
        /**实例化容器*/
        Collection collection = new MyCollection();

        /**创建迭代器*/
        Iterator iterator = collection.iterator();

        /**便利集合中的元素*/
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
